package com.sam.spring.chapter2.helloworld;

import com.sam.spring.chapter1.helloworld.HelloAPI;

public class HelloAPIDecorator implements HelloAPI {
	private HelloAPI helloAPI;

	public HelloAPIDecorator() {
	}

	public HelloAPIDecorator(HelloAPI helloAPI) {
		this.helloAPI = helloAPI;
	}
	
	public void setHelloAPI(HelloAPI helloAPI) {
		this.helloAPI = helloAPI;
	}

	public void sayHello() {
		System.out.println("==========装饰一下===========");
		helloAPI.sayHello();
		System.out.println("==========装饰一下===========");
	}

}
